<div class="search byclass">
<center>
<span>
年级：
<select name="grade">
<option>-----请选择-----</option>
</select>
</span>
<button style="margin-top:-10px;" class="btn btn-primary" name="count">统计</button>
</center>
</div>
<hr>
<div id="countGradeResult"></div>
<script>
	var grade=document.getElementsByName("grade")[0];
	var year=(new Date()).getFullYear();
	var count=document.getElementsByName("count")[0];
	for(j=0;j<5;j++){
		opt=document.createElement("option");
		opt.value=year-j;
		opt.innerHTML=(year-j)+"级";
		grade.appendChild(opt);
	}
	count.onclick=function(){
		pure.post({
			dataType:"html",
			data:{getgrade:grade.value},
			url:URL+"Count/countGrade",
			success:function(data){
				pure.dealJSinHTML(data,"countGradeResult")
			}
			
		});
	}

</script>